package com.langsin.annotation;

public class Test
{
	public static void main(String[] args)
	{
		Class<Parent> c = Parent.class;
		
		if(c.isAnnotationPresent(InheritedTest.class))
		{
			System.out.println("父类不生效");
		}
		Class<Child> childClass =Child.class;
		if(childClass.isAnnotationPresent(InheritedTest.class))
		{
			System.out.println("子类不生效");
		}
	}
}
